/***************************************************************************
 * Copyright 2012-2013 TXT e-solutions SpA
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * This work was performed within the IoT_at_Work Project
 * and partially funded by the European Commission's
 * 7th Framework Programme under the contract ICT-257367.
 *
 * Authors:
 *      Salvatore Piccione (TXT e-solutions SpA)
 *
 * Contributors:
 *        Domenico Rotondi (TXT e-solutions SpA)
 **************************************************************************/
package it.txt.ens.authorisationService.amqp;

/**
 * @author Salvatore Piccione (TXT e-solutions SpA - salvatore.piccione AT txtgroup.com)
 * @author Domenico Rotondi (TXT e-solutions SpA - domenico.rotondi AT txtgroup.com)
 *
 */
public class ManagedBroker {
    private String brokerName;
    private String brokerDescription;
    private String ipAddress;
    private int tcpPortNumber;
    private int httpPortNumber;
    private String brokerAdminUsername;
    private String brokerAdminPassword;
    /**
     * @return the brokerName
     */
    public String getBrokerName() {
        return brokerName;
    }
    /**
     * @param brokerName the brokerName to set
     */
    public void setBrokerName(String brokerName) {
        this.brokerName = brokerName;
    }
    /**
     * @return the brokerDescription
     */
    public String getBrokerDescription() {
        return brokerDescription;
    }
    /**
     * @param brokerDescription the brokerDescription to set
     */
    public void setBrokerDescription(String brokerDescription) {
        this.brokerDescription = brokerDescription;
    }
    /**
     * @return the ipAddress
     */
    public String getIpAddress() {
        return ipAddress;
    }
    /**
     * @param ipAddress the ipAddress to set
     */
    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
    /**
     * @return the tcpPortNumber
     */
    public int getTcpPortNumber() {
        return tcpPortNumber;
    }
    /**
     * @param tcpPortNumber the tcpPortNumber to set
     */
    public void setTcpPortNumber(int tcpPortNumber) {
        this.tcpPortNumber = tcpPortNumber;
    }
    /**
     * @return the brokerAdminUsername
     */
    public String getBrokerAdminUsername() {
        return brokerAdminUsername;
    }
    /**
     * @param brokerAdminUsername the brokerAdminUsername to set
     */
    public void setBrokerAdminUsername(String brokerAdminUsername) {
        this.brokerAdminUsername = brokerAdminUsername;
    }
    /**
     * @return the brokerAdminPassword
     */
    public String getBrokerAdminPassword() {
        return brokerAdminPassword;
    }
    /**
     * @param brokerAdminPassword the brokerAdminPassword to set
     */
    public void setBrokerAdminPassword(String brokerAdminPassword) {
        this.brokerAdminPassword = brokerAdminPassword;
    }
    /**
     * @return the httpPortNumber
     */
    public int getHttpPortNumber() {
        return httpPortNumber;
    }
    /**
     * @param httpPortNumber the httpPortNumber to set
     */
    public void setHttpPortNumber(int httpPortNumber) {
        this.httpPortNumber = httpPortNumber;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ManagedBroker [brokerName=");
        builder.append(brokerName);
        builder.append(", brokerDescription=");
        builder.append(brokerDescription);
        builder.append(", ipAddress=");
        builder.append(ipAddress);
        builder.append(", tcpPortNumber=");
        builder.append(tcpPortNumber);
        builder.append(", httpPortNumber=");
        builder.append(httpPortNumber);
        builder.append(", brokerAdminUsername=");
        builder.append(brokerAdminUsername);
        builder.append(", brokerAdminPassword=");
        builder.append(brokerAdminPassword);
        builder.append("]");
        return builder.toString();
    }
    
}
